import peresimport gennyfrom genny.wave_rendering import render_blip_part_with_new_textclass SimpleCalcRenderer(genny.renderer.Renderer):    def __init__(self):        super(SimpleCalcRenderer, self).__init__(genny.token_filter.BasicObjectFilter([(peres.parser.SimpleObject.TYPE_OBJECT, "calc")]))        def render(self, token):            exp = token.get_obj_value()        res = "#ERROR#"                try:            res = eval(exp)        except:            res = "#ERROR#"                res = "%s=%s" % (exp, res)        return render_blip_part_with_new_text(token, res)